package com.example.waibao.config;//package com.example.wxy2.config;
//
//
//import com.example.wxy2.interceptors.LoginInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//public class WebMvcConfig implements WebMvcConfigurer {
//
//    @Autowired
//    private  LoginInterceptor loginInterceptor;
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        //除了登录接口不拦截
//        registry.addInterceptor(loginInterceptor).addPathPatterns("/findPage","/updateUser");
//    }
//
//}
